class ItemReview < ActiveRecord::Base
  belongs_to :item
  belongs_to :user
  has_one :rating, :through => :item
  has_many :item_review_votes #投票


  delegate :name, :to => :item, :prefix => true, :allow_nil => true
  delegate :user_name, :nick_name, :to => :user, :allow_nil => true

end
